const mongoose = require('mongoose')
const { Schema, model } = mongoose
const ArticleSchema = new Schema({
    article_img: { type:String, require:true},
    article_title: { type:String, require:true},
    article_author: {type:String, require:true},
    article_time: {type:String, require:true},
    article_introduction: {type:String, require:true},
    article_tag: {type:String, require:true},
    article_thumbs: {type:String, require:true},
    article_preview: {type:String, require:true},
    article_child: {type:String, require:true},
    thumbUserList: {type:Array, default: []}
})
const Article = model('article', ArticleSchema)
module.exports = Article
